@extends('home.jicheng')
@section('content')
<div class="ebody">

    <div class="cart_box1" align="center">
      <div style="margin:20px auto;">
        <div class="cart_tx1"><strong>我挑选的商品</strong></div>
  <div class="cart_box1">
    <div class="lista">
        
         <table cellpadding="0" cellspacing="0">
         <thead>
                    <tr class="tx">
                        <td class="cellone" colspan="2" align="center" style="text-align:center">商品名</td>
                        <td width="87" >市场价</td>
                        <td width="118">销售价</td>
                        <td width="107">数量</td>
                        <td width="71">小计</td>
                        
                    </tr>
         </thead>
         <tbody>
                @foreach($data as $row)
                <tr class="cartli1">
                    <td width="102" valign="middle">
                      <img style="width:100px;height:100px;" src="{{ asset($row -> gid -> gpic) }}" alt="">
                    </td>
                    <td width="363"  class="txtx">{{$row -> gid -> gname}}</td>
                    <td>￥{{$row -> gid -> gpirce}}元</td>
                    <td><big>￥{{$row -> gid -> gpirce}}元</big></span></td>
                    <td align="center">{{$row -> bcnt}}</td>
                    <td><small>￥{{($row -> gid -> gpirce) * ($row -> bcnt)}}元</small></td>
                </tr>
               @endforeach
            </tbody>
    <tfoot>
        <tr>
          <td height="55" valign="middle"  class="cellone2" > </td>
          <td height="55" valign="middle"  class="cellone2" ></td>
         <td height="55" colspan="5" valign="middle"  class="cellone" >
            <p>立省：￥0.00元</p>
            <p class="t2">商品总金额：<strong>￥{{$num}}元</strong></p>
          </td>
        </tr>
    </tfoot>
    </table>
      
      

</div>
    
</div>
<div class="ebody">
 <div class="cart_tx1" style=" margin-bottom:10px;"><strong>收货人信息</strong></div>
<script type="text/javascript" src="js/transport.js"></script><table width="100%" align="center" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd">
    <form id="formCart" name="formCart" method="post" action="{{url('home/order/insert')}}">
        {{ csrf_field()}}
    <input type="hidden" name="gid" value="">
    <tr>
    <td bgcolor="#ffffff">收货人姓名:</td>
    <td bgcolor="#ffffff"><input required="required" name="rec" type="text" class="inputBg" id="consignee_0" value="" />
    (必填) </td>
    <td bgcolor="#ffffff"></td>
    <td bgcolor="#ffffff"></td>
  </tr>
    
  <tr>
    <td bgcolor="#ffffff">详细地址:</td>
    <td bgcolor="#ffffff"><input required="required" name="addr" type="text" class="inputBg"  id="address_0" value="" />
    (必填)</td>
    <td bgcolor="#ffffff"></td>
    <td bgcolor="#ffffff"></td>
  </tr>
    <tr>
    <td bgcolor="#ffffff">手机号:</td>
    <td bgcolor="#ffffff"><input required="required" name="tel" type="text" class="inputBg"  id="tel_0" value="" />
    (必填)</td>
    <td bgcolor="#ffffff"></td>
    <td bgcolor="#ffffff"></td>
  </tr>
    
  <tr>
    <td bgcolor="#ffffff">留言:</td>
    <td bgcolor="#ffffff"><input name="umsg" type="text" class="inputBg"  id="sign_building_0" value="" /></td>
    <td bgcolor="#ffffff">重要提示*</td>
    <td bgcolor="#ffffff">本店全部货到付款</td>
  </tr>
    <tr>
    <td colspan="4" align="center" bgcolor="#ffffff">
      <input type="submit" name="Submit" class="bnt_blue_2" value="确定订单" />
    </td>
  </tr>
</table>
</div>
</form>
    
</div>

@endsection('content')